<?php


namespace app\applet\controller;


use app\BaseController;
use think\facade\Db;

class User extends BaseController
{
    public function getRoomList(){


        $roomList=$this->request->userRoomList;
        //$openid=$this->request->openid;
        //$data=Db::table("wxpro_roominfo_user")->where("openid",$openid)->select();
        parent::sendOutput($roomList);
    }

    public function getRoomListBill(){
        $userRoomList=$this->request->userRoomList;
        foreach ($userRoomList as &$value){
            $value["roomInfo"]=Db::table("roominfo")->where("id",$value["room_id"])->find();
        }
        parent::sendOutput($userRoomList);
    }
}